﻿using System.Web.Mvc;
using System.Web.Routing;
using MvcApplication.Models;

namespace MvcApplication.Controllers
{
    public class GuestBookController : Controller
    {
        //
        // GET: /GuestBook/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Sign(GuestModelEntity guestModel)
        {
            return RedirectToAction("ThankYou", guestModel);
        }

        public ActionResult ThankYou(GuestModelEntity guestModel)
        {
            ViewData["guestModel"] = guestModel;
            return View(guestModel);
        }
    }
}
